package com.logistics.service.feign;

import com.logistics.compont.ResponseApi;
import com.logistics.pojo.Employee;
import com.logistics.service.feign.impl.EmployeeFeignException;
import com.logistics.service.feign.impl.StoreFeignException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

@FeignClient(value = "lg-sys",fallback = EmployeeFeignException.class)
public interface EmployeeFeign {

    @PostMapping("/employee/findEmpBySid")
    ResponseApi<Map<Integer, List<Employee>>> findEmpBySid(String sids);
}
